import request from '@/utils/request'

// 查询行程管理列表
export function listTravelItinerary(query) {
  return request({
    url: '/manage/travelItinerary/list',
    method: 'get',
    params: query
  })
}

export function listTravelItineraryBudget(query) {
  return request({
    url: '/manage/travelItinerary/listBudget',
    method: 'get',
    params: query
  })
}



// 查询行程管理详细
export function getTravelItinerary(id) {
  return request({
    url: '/manage/travelItinerary/' + id,
    method: 'get'
  })
}

// 新增行程管理
export function addTravelItinerary(data) {
  return request({
    url: '/manage/travelItinerary',
    method: 'post',
    data: data
  })
}

// 修改行程管理
export function updateTravelItinerary(data) {
  return request({
    url: '/manage/travelItinerary',
    method: 'put',
    data: data
  })
}

// 删除行程管理
export function delTravelItinerary(id) {
  return request({
    url: '/manage/travelItinerary/' + id,
    method: 'delete'
  })
}
export function getTravelBudget(id) {
  return request({
    url: '/manage/travelItinerary/budget/' + id,
    method: 'get'
  })
}

export function getBudget(id) {
  return request({
    url: '/manage/travelItinerary/travelBudget/' + id,
    method: 'get'
  })
}